<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>房联行增值服务部后台管理中心</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="stylesheet" href="./css/font.css">
		<link rel="stylesheet" href="./css/xadmin.css">
		<script type="text/javascript" src="js/jquery.min.js"></script>
		<script type="text/javascript" src="./lib/layui/layui.js" charset="utf-8"></script>
		<script type="text/javascript" src="./js/xadmin.js"></script>
		<!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
		<!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
	</head>
<body>
	<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="javascript:;">首页</a>
        <a href="javascript:;">工长管理</a>
        <a>
          <cite>工长列表</cite>
        </a>
      </span>
      <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon layui-icon-refresh-1" style="line-height:30px"></i>
      </a>
    </div>
    <div class="x-body formstyle">
    	<div class="layui-row">
    		<form class="layui-form layui-col-md12 x-so ">
    			<div class="layui-form-item">
    				<div class="layui-inline" style="float:left">
    					<label class="layui-form-label">选择地区：</label>
    					<div class="layui-input-inline" style="width:140px;">
    						<select name="provid" id="provid" lay-filter="provid">
    							<option value="">请选择省</option>
    						</select>
    					</div>
    					<div class="layui-input-inline" style="width:120px;">
    						<select name="cityid" id="cityid" lay-filter="cityid">
    							<option value="">请选择市</option>
    						</select>
    					</div>
    					<div class="layui-input-inline" style="width:160px;">
    						<select name="areaid" id="areaid" lay-filter="areaid">
    							<option value="">请选择县/区</option>
    						</select>
    					</div>
    				</div>
    				<div class="layui-inline" style="float:left">
    					<label class="layui-form-label">认证状态：</label>
    					<div class="layui-input-inline" style="width: 100px;">
    						<select name="state">
    							<option value="">全部</option>
    							<option value="已认证" selected="">已认证</option>
    							<option value="未认证">未认证</option>
    						</select>
    					</div>
    				</div>
    				<div class="layui-inline" style="float:left">
    					<label class="layui-form-label">创建时间：</label>
    					<div class="layui-input-inline" style="width: 100px;">
    						<input type="text" name="start" id="start" placeholder="开始日期" autocomplete="off" class="layui-input">
    					</div>
    					<div class="layui-form-mid">-</div>
    					<div class="layui-input-inline" style="width: 100px;">
    						<input type="text" name="end" id="end" placeholder="结束日期" autocomplete="off" class="layui-input">
    					</div>
    				</div>
    				
    
    			</div>
    			<div class="layui-form-item">
    				<div class="layui-inline" style="float:left">
    					<label class="layui-form-label">服务收费：</label>
    					<div class="layui-input-inline" style="width:60px;">
    						<input type="text" name="price_min" placeholder="￥" autocomplete="off" class="layui-input">
    					</div>
    					<div class="layui-form-mid">-</div>
    					<div class="layui-input-inline" style="width: 60px;">
    						<input type="text" name="price_max" placeholder="￥" autocomplete="off" class="layui-input">
    					</div>
    					<label class="layui-form-label" style=" text-align: left;padding-left: 0px;">元/平米</label>
    				</div>
    
    				<div class="layui-inline" style="float:left">
    					<input type="text" name="username" placeholder="请输入公司名称或手机号" autocomplete="off" class="layui-input">
    				</div>
    				
    				
    				<div class="layui-inline" style="float:left">
    					<button class="layui-btn layui-bg-green layui-btn-sm" lay-submit="" lay-filter="sreach"><i class="layui-icon">&#xe615;</i></button>
    					<button class="layui-btn layui-bg-orange" type="reset">清空</button>
    				</div>
    			</div>
    		</form>
    	</div>	
    		
				<xblock>
					<button class="layui-btn layui-btn-sm layui-btn-danger" onclick="delAll()"><i class="layui-icon"></i>批量删除</button>
					<button class="layui-btn layui-btn-sm" onclick="x_admin_show('新增工长','./company-gz-add.html')"><i class="layui-icon"></i>新增</button>
					<span class="x-right" style="line-height:40px">共有数据：88 条</span>
			    </xblock>
				<table class="layui-table">
				<thead>
					<tr>
						<th>
							<div class="layui-unselect header layui-form-checkbox" lay-skin="primary"><i class="layui-icon">&#xe605;</i></div>
						</th>
						<th>ID</th>
						<th>姓名</th>
						<th>头像</th>
						<th>手机号</th>
						<th>认证状态</th>
						<th>收费标准</th>
						<th>工作年限</th>
						<th>区域</th>
						<th>添加时间</th>
						<th>口碑</th>
						<th>擅长户型</th>
						<th>服务内容</th>
						<th>职务</th>
						<th>工长评价</th>
						<th>工作理念</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td>
							<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
						</td>
						<td>101</td>
						<td>吕子祁</td>
						<td><img class="img-radius" src="images/user.png" width="30"/></td>
						<td>15825256263</td>
						<td class="td-status">
								<i class="layui-icon layui-icon-ok"></i>
						</td>
						<td>100</td>
						<td>10年</td>
						<td>洛阳市洛龙区</td>
						<td>2018-05-17</td>
						<td>
							4
						</td>
						<td>大宅</td>
						<td>水工,木工,漆工,泥工,瓦工</td>
						<td>工长</td>
						<td>吃苦耐劳,踏实肯干,技术高超</td>
						<td>选择我们绝对不会让你后悔，尽力做到业主满意。</td>
					  	<td class="td-editor">							
							<a title="编辑" onclick="x_admin_show('编辑','company-gz-edit.html')" href="javascript:;">编辑</a>
							<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">删除</a>
						</td>
					</tr>
					<tr>
						<td>
							<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
						</td>
						<td>101</td>
						<td>吕子祁</td>
						<td><img class="img-radius" src="images/user.png" width="30"/></td>
						<td>15825256263</td>
						<td class="td-status">
								<i class="layui-icon layui-icon-close-fill"></i>
						</td>
						<td>100</td>
						<td>10年</td>
						<td>洛阳市洛龙区</td>
						<td>2018-05-17</td>
						<td>
							4
						</td>
						<td>大宅</td>
						<td>水工,木工,漆工,泥工,瓦工</td>
						<td>工长</td>
						<td>吃苦耐劳,踏实肯干,技术高超</td>
						<td>选择我们绝对不会让你后悔，尽力做到业主满意。</td>
					  	<td class="td-editor">							
							<a title="编辑" onclick="x_admin_show('编辑','company-designer-edit.html')" href="javascript:;">编辑</a>
							<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">删除</a>
						</td>
					</tr>
					<tr>
						<td>
							<div class="layui-unselect layui-form-checkbox" lay-skin="primary" data-id='2'><i class="layui-icon">&#xe605;</i></div>
						</td>
						<td>101</td>
						<td>吕子祁</td>
						<td><img class="img-radius" src="images/user.png" width="30"/></td>
						<td>15825256263</td>
						<td class="td-status">
								<i class="layui-icon layui-icon-close-fill"></i>
						</td>
						<td>100</td>
						<td>10年</td>
						<td>洛阳市洛龙区</td>
						<td>2018-05-17</td>
						<td>
							4
						</td>
						<td>大宅</td>
						<td>水工,木工,漆工,泥工,瓦工</td>
						<td>工长</td>
						<td>吃苦耐劳,踏实肯干,技术高超</td>
						<td>选择我们绝对不会让你后悔，尽力做到业主满意。</td>
					  	<td class="td-editor">							
							<a title="编辑" onclick="x_admin_show('编辑','company-designer-edit.html')" href="javascript:;">编辑</a>
							<a title="删除" onclick="member_del(this,'要删除的id')" href="javascript:;">删除</a>
						</td>
					</tr>
				</tbody>
			</table>
			<div id="page"></div>
		</div>
	
		<script>
			layui.use(['form', 'layer', 'element', 'upload','laypage', 'laydate'], function() {
				var $ = layui.jquery
				var form = layui.form,
				layer = layui.layer,
				upload = layui.upload;	
				var laydate = layui.laydate;
				var laypage = layui.laydate;
				//调用时间
				laydate.render({
					elem: '#start'
				});
				laydate.render({
					elem: '#end'
				});
				
				 //分页
			    laypage.render({
					elem: 'page'
			        ,count: 100
			        ,layout: ['count', 'prev', 'page', 'next', 'limit', 'refresh', 'skip']
			        ,jump: function(obj){
			          console.log(obj)
			        }
			    });

				
			  //监听指定开关
			  form.on('switch(switchTest)', function(data){
			    /*layer.msg('开关checked：'+ (this.checked ? 'true' : 'false'), {
			      offset: '6px';
			    });*/
			   
			  });
				//监听提交
				form.on('submit(add)', function(data) {
					console.log(data);
					//发异步，把数据提交给php
					layer.alert("添加成功", {
						icon: 6
					}, function() {
						// 获得frame索引
						var index = parent.layer.getFrameIndex(window.name);
						//关闭当前frame
						parent.layer.close(index);
					});
					return false;
				});
			});
		</script>
	</body>
</html>